<?php  
class IndexController extends CenterController {
    public function init() {
        parent::init();
    }
    public function indexAction(){
        $menu = Rbac::getNav($this->userInfo['user_id']);
        $this->displayTemplate('index/index' , array(
            'menu' => $menu ,
            'userInfo'=>$this->userInfo,
        ) );
    }
    public function homeAction(){
        $AdminUserModel = new AdminUserModel();
        $account = $AdminUserModel->getAdminUserByUserId($this->userInfo['cid']);
        $this->displayTemplate('index/main' , array(
            'userInfo'=>$this->userInfo,
            'account' => $account
        ) );
    }
}
?>